<!-- addEditApp.html 2017-11-02 15:49:07-->
#@HplusLayout()
#define content()
<div style="padding:10px;height: 100%">
	<form method="post" class="form-horizontal required-validate" action="saveApp" novalidate="novalidate" onsubmit="return validateCallback(this,listDialogAjaxDone)">
		<input type="hidden" name="authApp.id" value="#(authApp.id)"/>
		
				<div class="form-group">
				<label class="col-xs-3 control-label">名称：</label>
				<div class="col-xs-8">
	<input type="text" class="form-control required" name="authApp.name" value="#(authApp.name)"/>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">appid：</label>
				<div class="col-xs-8">
	<input type="text" class="form-control required" name="authApp.appid" value="#(authApp.appid)"/>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">ip白名单：</label>
				<div class="col-xs-8">
	<textarea name="authApp.ip" class="form-control">#(authApp.ip)</textarea>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">描述：</label>
				<div class="col-xs-8">
	<textarea name="authApp.remark" class="form-control  ">#(authApp.remark)</textarea>
				</div>
		</div>
		<div class="form-group">
				<label class="col-xs-3 control-label">状态：</label>
				<div class="col-xs-8">
		#for(item:data("ENABLE_FLAG"))
		<label style="font-weight:normal;line-height: 37px;margin-bottom: 0px;padding-right: 5px"><input class="required" type="radio" name="authApp.enable_flag" #if(authApp.enable_flag)#if(authApp.enable_flag==item.key)checked="checked"#end#elseif(item.key=="T")checked="checked"#end value="#(item.key)"/> #(item.value.name) </label>
		#end
				</div>
		</div>
		<div class="form-group">
			<div class="col-xs-8 col-xs-offset-3">
				<button type="submit" class="btn btn-primary">保存</button>
			</div>
		</div>
	</form>
</div>
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/validate/messages_zh.min.js"></script>

#end
